package com.woniu.permissions.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("role_resource")
@ApiModel("角色资源关联对象")
@AllArgsConstructor
@NoArgsConstructor
public class RoleResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /*
    角色id
     */
    @ApiModelProperty(name = "roleId",value = "角色id")
    @TableField("role_id")
    private Integer roleId;

    /*
    资源id
     */
    @ApiModelProperty(name = "resourseId",value = "资源id")
    @TableField("resourse_id")
    private Integer resourseId;


}
